home *** CD-ROM | disk | FTP | other *** search
-
- ; $VER: Magnum_Opus.Install 1.7 (11.10.98)
-
- ; Copyright © 1996-1998 Richard Lane.
-
- ;#############################################################################
- ;# Here is a special note for those people who like to hack other #
- ;# peoples installation scripts. LEAVE THIS ALONE. It works very well #
- ;# without you interfering with it. However, if you think it can be improved #
- ;# give me a call. My details can be found in the Magnum_Opus.Guide in the #
- ;# "Help" drawer. #
- ;#############################################################################
-
- (set #welcome
- (cat "\nMagnum Opus V3.1 Installation.\n"
- "Copyright © 1996 - 1998 Richard Lane."
- )
- )
-
- (welcome #welcome)
- (complete 3)
-
- ;================================================
- ; First check that the assign to DOpus5: exists.
-
- (set #no-opus (cat "You don't appear to have Directory Opus V5.661 or above installed.\n"
- "\nIf you do NOT start Directory Opus when booting, Please load it"
- "\nand run this installation script again.")
- )
- (if (not (exists "DOpus5:DirectoryOpus"))
- (abort #no-opus)
- )
- (complete 5)
- ;================================================
- ; Warn the user if they're running a Kickstart 2 Amiga.
- ; If it's a Kickstart 1.x Amiga then DOpus will NOT install in the first
- ; place and the above will pick this up, clever huh.
-
- (if (< (/ (getversion) 65536) 38)
- (message "IMPORTANT NOTICE\n\nYou are using a Workbench 2.x Amiga.\n\n"
- "Magnum Opus V3.1 has not been tested with this but should work OK\n"
- "Please select what you want you want to do ?")
- )
- (complete 8)
- ;================================================
- ; Now to check and display the version of Directory Opus in use.
-
- (set vernum (getversion "DOpus5:DirectoryOpus"))
- (set ver (/ vernum 65536))
- (set rev (- vernum (* ver 65536) ) )
-
- (message ("\nDirectory Opus V5.661 or greater is required\n\nyou have version %ld.%ld" ver rev)
- )
- (complete 10)
-
- (set #update
- (askchoice
- (prompt "Please select an option.")
- (help "Select the \"Update Magnum Opus V3.0 to V3.1\" option if you have "
- "previously installed version 3.0.\n"
- "If you have previously installed Magnum Opus V1.0 - V2.2 or "
- "have never installed it before, select the "
- "\"Install Magnum Opus V3.1\" option.")
- (choices "Update Magnum Opus V3.0 to V3.1" "Install Magnum Opus V3.1")
- )
- )
- (complete 20)
- ;================================================
- ; Here's the bit that does the updating of version 3.0 to 3.1.
- ; Complex bitch ain't it, but it sure looks pretty.
-
- (set #icontt
- (cat "\nThis sets the correct default tooltype and stack size for the Magnum_Opus.Guide "
- "icon. It is strongly recommended that you click on Proceed.")
- )
-
- ;This is 700 blocks for safety/backups, 694 blocks needed for update
- (set #no-spaceupdate (cat
- "You need at least 358,400 bytes of disk space\n"
- "on the partition where Opus Magellan is installed\n")
- )
-
- (if (= #update 0)
- (
- (message "\nThis will update the Magnum_Opus.Guide, "
- "install 14 new and 6 updated filetypes in"
- " \"DOpus5:Filetypes\" "
- )
-
- (if (< (getdiskspace "DOpus5:") 358400)
- (abort #no-spaceupdate)
- )
-
- (complete 40)
-
- (copylib
- (prompt "Copying Help file")
- (help @copylib-help)
- (Source "help/Magnum_Opus.Guide")
- (dest "DOpus5:Help")
- (confirm)
- (infos) ;I want the new icon installed as this has the
- (noposition) ;proper copyright message in it.
- (optional "force")
- )
-
- (complete 60)
-
- (tooltype
- (Prompt "Setting the correct tooltype & stack size in the Magnum_Opus.Guide.")
- (help #icontt)
- (dest "DOpus5:Help/Magnum_Opus.Guide")
- (setdefaulttool "Multiview")
- (setstack 4096)
- (confirm)
- )
-
- (complete 80)
-
- (Working "Unpacking extra Filetypes... This may take a while so please be patient")
-
- (run "Filetypes/filetypes2.run >CON:0/0/500/100/Magnum_Opus_3.1-UPDATE/ DOpus5:")
-
-
-
- (complete 100)
-
- (run "SYS:Utilities/Multiview DOpus5:Help/Magnum_Opus.Guide WINDOW"
- (Help "I'll give you a clue, click Proceed.")
- (prompt "\nDo you want to read the Magnum_Opus V3.1 AmigaGuide ?")
- (confirm)
- )
-
- (exit
- "Updating of Magnum Opus to version 3.1 complete"
- (quiet)
- )
- )
- )
-
- ;#### Installer jumps here if FULL install selected. ####
-
- ;This is (approx) 1758 blocks for safety/backups approx 1564 blocks needed for full install of 3.1.
-
- (set #no-space (cat
- "You need at least 900,000 bytes of disk space\n"
- "on the partition where Opus Magellan is installed\n")
- )
- (if (< (getdiskspace "DOpus5:") 900000)
- (abort #no-space)
- )
- (complete 25)
-
- ;================================================
- ; Check for and remove obsolete parts.
-
-
- (delete "DOpus5:Buttons/ExampleButtons"
- "DOpus5:Buttons/ExampleButtons2"
- "DOpus5:Buttons/ExampleButtons5.11"
- "DOpus5:Buttons/Magnum_Opus_Toolbar"
- "DOpus5:ARexx/Back.DOpus5"
- "DOpus5:ARexx/ARexx.1"
- "DOpus5:Help/ARexx.1"
- "DOpus5:Help/Good.requester"
- "DOpus5:Help/moo"
- (prompt "\nNow checking for previous installations of Magnum Opus "
- "versions 1.0 - 2.2 and removing obsolete parts.")
- (help "\nThis part of the installation ONLY removes obsolete files "
- "that are no longer required. You can safely select Proceed.")
- (optional "force")
- (confirm)
- (infos)
- )
- (complete 30)
- ;================================================
- ;This is a new safety check to stop people who have installed a previous
- ;copy overwriting their original filetypes even if they did not rename
- ;their "Filetypes_Original" directory. It also stops a problem with
- ;the following functions failing if the Filetypes_Original directory
- ;is delete protected.
-
- (set #old-filetypes (cat
- "You already have backed up filetypes in\n"
- " \"DOpus5:Filetypes_ORIGINAL\" \n"
- "from a previous installation of Magnum Opus. "
- "Please rename or delete this directory before installing "
- "Magnum Opus version 3.1")
- )
-
- (if (exists "DOpus5:Filetypes_ORIGINAL")
- (abort #old-filetypes)
- )
- (complete 35)
-
- ;=================================================
- ;Main filetype installation
-
- (message
- "\nThe installer will now backup your current filetypes to a directory called \n"
- "\"Filetypes_ORIGINAL.\""
- "\nPlease Note! If you need to run this installation again please rename this directory."
- "\n\nAfter this has been done the new Magnum Opus 3.1 filetypes will be installed into Opus Magellan.\n\n"
- (all)
- )
-
- (rename "DOpus5:Filetypes" "DOpus5:Filetypes_ORIGINAL"
- (prompt "Backing Up current filetypes")
- )
-
- (
- (Working "Unpacking Filetypes...This may take a while so please be patient")
- (run "Filetypes/Filetypes.run >CON:0/0/500/100/Magnum_Opus_3.0/ DOpus5:")
- )
-
- (complete 40)
-
- (
- (Working "Unpacking extra Filetypes... This may take a while so please be patient")
- (run "Filetypes/filetypes2.run >CON:0/0/500/100/Magnum_Opus_3.1-UPDATE/ DOpus5:")
- )
-
- (complete 45)
- ;================================================
- ; Now for the Help files.
- ; As there's a version string in the AmigaGuide file we can do a copylib.
-
- (copylib
- (prompt "Copying Help file")
- (help @copylib-help)
- (Source "help/Magnum_Opus.Guide")
- (dest "DOpus5:Help")
- (confirm)
- (infos) ;I want the new icon installed as this has the
- (noposition) ;proper copyright message in it.
- (optional "force")
- )
-
- (complete 50)
-
- ; Just to make sure some bright spark hasn't set the wrong default tooltype.
- ; esspecially dam coverdisk compiliers, they're a pain in the arse when they do this.
- ; Never mind we have the technology to sort it out.
-
- (set #icontt
- (cat "\nThis sets the correct default tooltype and stack size for the Magnum_Opus.Guide "
- "icon. It is strongly recommended that you click on Proceed."
- ))
-
- (tooltype
- (Prompt "Setting the correct tooltype & stack size in the Magnum_Opus.Guide.")
- (help #icontt)
- (dest "DOpus5:Help/Magnum_Opus.Guide")
- (setdefaulttool "Multiview")
- (setstack 4096)
- (confirm)
- )
-
- (complete 55)
-
- (copyfiles
- (prompt "Copying additional Help file parts")
- (help @copyfiles-help)
- (Source "help")
- (dest "DOpus5:Help")
- (pattern "~(#?.Guide|#?.info)") ;this really works ???? yep.
- (optional "force")
- )
- (complete 65)
- ;No confirm option on this as these bits are needed
- ;and I want the new versions of these installed.
-
- ; By default DOpus 5 doesn't install a Drawer icon for the Help directory, this
- ; will check if there is one from the MWB_DOpus8 part of the distribution or
- ; another allready installed. This will also make it easier for novice users
- ; to find the Magnum2 help file !
-
- (if (NOT (exists "DOpus5:help.info"))
- (copyfiles
- (prompt "")
- (help @copyfiles-help)
- (source "Help.info")
- (dest "DOpus5:")
- (noposition)
- (optional "force")
- )
- )
- (complete 70)
- ;=================================================
- (message "\n\n Now for the modules, just one for now")
- (copylib
- (prompt "Copying Help file")
- (help @copylib-help)
- (Source "Modules")
- (dest "DOpus5:Modules")
- (confirm)
- (optional force)
- )
- (complete 75)
- ;================================================
- (message "\n\n Next the ARexx bits")
- (copyfiles
- (prompt "Copying ARexx bits")
- (help @copyfiles-help)
- (Source "ARexx")
- (dest "DOpus5:ARexx")
- (pattern "#?")
- (optional "force")
- )
- (complete 80)
- ;=================================================
- (copyfiles
- (prompt "Copying Button Banks")
- (help @copyfiles-help)
- (source "Buttons")
- (dest "DOpus5:Buttons")
- (Pattern "#?")
- (optional "force")
- (infos)
- )
- (complete 85)
- ;=================================================
-
- (message "Installing new ToolBar Images")
-
- (copyfiles
- (prompt "Copying NewImages3")
- (help @copyfiles-help)
- (Source "NewImages3")
- (dest "DOpus5:NewImages3")
- (pattern "#?")
- (infos)
- (noposition)
- (optional "force")
- )
- (complete 90)
- ;=================================================
- (message "\n\n Now the icons")
- (copyfiles
- (prompt "Copying Icons")
- (help @copyfiles-help)
- (Source "Icons")
- (dest "DOpus5:Icons")
- (pattern "#?")
- (optional "force")
- )
- (complete 95)
-
- (copyfiles
- (prompt "and now the disk icons...")
- (help @copyfiles-help)
- (source "Disk_Icons")
- (dest "DOpus5:Icons/Disk_Icons")
- (pattern "#?")
- (infos)
- (noposition)
- (optional "force")
- )
- (complete 100)
- ;=================================================
- (run "SYS:Utilities/Multiview DOpus5:Help/Magnum_Opus.Guide WINDOW"
- (Help "I'll give you a clue, click Proceed.")
- (prompt "\nDo you want to read the Magnum_Opus V3.1 AmigaGuide ?")
- (confirm)
- )
-
- (exit
- "\nPlease read the AmigaGuide File called "
- "\"Magnum_Opus.Guide\" which is now in "
- "\"DOpus5:Help/\"\n\n"
- "You will need to reboot for the new changes to take effect.\n\n"
- "Don't forget that there is a drawer with some nice "
- "Hard Disk icons in that you may like to use "
- "Which can be found in \"DOpus5:Icons/Disk_Icons\"."
- (quiet)
- )
-
-